package coloring;

import org.jgrapht.graph.DefaultEdge;

import coloring.vertex.Vertex;

public class MyDefaultEdge extends DefaultEdge {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1886619334945913343L;

	public int getSourseColor() {
		Vertex source = (Vertex) super.getSource();
		return source.getColor();
	}

	public int getTargetColor() {
		Vertex target = (Vertex) super.getTarget();
		return target.getColor();
	}
}
